package com.yx.fx.webApi.controller;

import com.yx.fx.sys.db.entity.SysDepartment;
import com.yx.fx.sys.db.mapper.SysDepartmentMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/sys/department")
public class SysDepartmentController {

    @Resource
    private SysDepartmentMapper sysDepartmentMapper;

    @RequestMapping(value = "/getBankList",method = RequestMethod.GET)
    public List<SysDepartment> getBankList(){

        List<SysDepartment> sysDepartments = sysDepartmentMapper.selectList(null);
        return sysDepartments;

    }
}
